<?php 

//$cat = get_cat_str($_SERVER['QUERY_STRING']);
//$cat = update_page_num($_SERVER['QUERY_STRING'], );
if ($this->pageCount): ?>
<div class="paginationControl">
  <!– Previous page link –>
  <?php if (isset($this->previous)): ?>
   <a class='paginator' href="<?php echo  $this->url().'?'.update_page_num($_SERVER['QUERY_STRING'], $this->previous)?>">
    &lt; 上一页
  </a> |
  <?php else: ?>
  <span class='paginator' class="disabled">&lt; 上一页</span> |
  <?php endif; ?>
  
  <!– Numbered page links –>
  <?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>
  <a class='paginator' href="<?php echo  $this->url().'?'.update_page_num($_SERVER['QUERY_STRING'], $page) ?>">
    <?php echo  $page; ?>
  </a> |
  <?php else: ?>
  <span class='current-paginator'>
  <?php echo  $page; ?> 
  </span>|
  <?php endif; ?>
  <?php endforeach; ?>
  
  <!– Next page link –>
  <?php if (isset($this->next)): ?>
  <a class='paginator' href="<?php echo $this->url().'?'.update_page_num($_SERVER['QUERY_STRING'], $this->next) ?>">
    下一页 &gt;
  </a>
  <?php else: ?>
  <span class='paginator' class="disabled">下一页 &gt;</span>
  <?php endif; ?>
</div>
<?php endif; ?>
